<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        //定义一个无参函数
        function fun() {
            alert("无参函数fun()被调用")
        }
        //函数调用才会执行
        //fun();

        function fun2(a, b) {
            alert("有参函数fun2()被调用了 a=>" + a + "，b=>" + b)
        }
        //fun2(12, "abc");

        //定义带有返回值的函数
        function fun3(num1, num2) {
            return num1 + num2;
        }
        let result = fun3(132, 23);
        //alert(result)

    </script>
</head>
<body>

</body>
</html>